<?php
/**
 * Transfer handler for XOOPS
 *
 * This is intended to handle content intercommunication between modules as well as components
 * There might need to be a more explicit name for the handle since it is always confusing
 *
 * @copyright       The XOOPS project http://sourceforge.net/projects/xoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @author          Taiwen Jiang <phppp@users.sourceforge.net>
 * @since           1.00
 * @version         $Id$
 * @package         Frameworks
 * @subpackage      transfer
 */

class transfer_pdf extends Transfer
{
    function transfer_pdf()
    {
        $this->Transfer("pdf");
    }
    
    function do_transfer(&$data)
    {
        eval(parent::do_transfer());
    
        global $pdf_data;
        
        $pdf_data["title"] = $data["title"];
        $pdf_data["subtitle"] = $data["subtitle"];
        $pdf_data["author"] = $data["author"];
        $pdf_data["date"] = $data["date"];
        $pdf_data["content"] = $data["content"];
        $pdf_data["url"] = $data["url"];
            
        include XOOPS_ROOT_PATH . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname", "n") . "/pdf.php";
        exit();
    }
}
?>